package com.yisu.auction.api.domain.vo.goodsInfoPackageVos;


import org.apache.commons.lang.StringUtils;

import java.math.BigDecimal;

/**
 * author: 赵杰
 * Business Description：商品竞拍人出价列表
 * createTime：2017/8/17
 */
public class OfferPriceVo {

    private String userName;

    private String address;

    private String ico; //出价人头像

    private BigDecimal offerPrice;

    private String auctionStatus; // 0 出局  1待定 2中签

    private BigDecimal price;//市场价

    private BigDecimal transactionPrice; //竞拍价

    public String getUserName() {
        if (StringUtils.isEmpty(userName)) {
            return "匿名";
        }
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAuctionStatus() {
        return auctionStatus;
    }

    public void setAuctionStatus(String auctionStatus) {
        this.auctionStatus = auctionStatus;
    }

    public BigDecimal getOfferPrice() {
        return offerPrice;
    }

    public void setOfferPrice(BigDecimal offerPrice) {
        this.offerPrice = offerPrice;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTransactionPrice() {
        if (transactionPrice == null)
            return BigDecimal.valueOf(0);
        return transactionPrice;
    }

    public void setTransactionPrice(BigDecimal transactionPrice) {
        this.transactionPrice = transactionPrice;
    }

    public String getIco() {
        return ico;
    }

    public void setIco(String ico) {
        this.ico = ico;
    }

    @Override
    public String toString() {
        return "OfferPriceVo{" +
                "userName='" + userName + '\'' +
                ", address='" + address + '\'' +
                ", ico='" + ico + '\'' +
                ", offerPrice=" + offerPrice +
                ", auctionStatus='" + auctionStatus + '\'' +
                ", price=" + price +
                ", transactionPrice=" + transactionPrice +
                '}';
    }
}
